package com.demo.Controller;

import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

/**
 * author：王五
 */
@Controller
public class UserController2 {

    @Resource
    private User user;

    public void getUser() {
        System.out.println("王五 : " + user);
    }

}